package com.itheima.mall.service.oms;


import com.itheima.mall.api.oms.ReturnApplyApi;
import com.itheima.mall.pojo.oms.OmsOrderReturnApply;
import com.itheima.mall.vo.PageResult;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class OrderReturnApplyService {

    @DubboReference
    private ReturnApplyApi returnApplyApi;

    public void deleteApplyByIds(Integer[] ids) {
        returnApplyApi.deleteApplyByIds(ids);
    }

    public PageResult selectReturnApply(String createTime, String handleMan, String handleTime, Integer id, Integer pageNum, Integer pageSize, String receiverKeyword, Integer status) {
        return returnApplyApi.ReturnApply(createTime,handleMan,handleTime,id,pageNum,pageSize,receiverKeyword,status);
    }

    public void updateStatus(OmsOrderReturnApply omsOrderReturnApply) {
        returnApplyApi.updateStatus(omsOrderReturnApply);
    }

    public OmsOrderReturnApply getReturnApply(Integer id) {
        return returnApplyApi.getReturnApply(id);
    }
}
